<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',border:false" style=" height:45px;padding:5px;border-bottom:1px solid #95B8E7;">
        <div style="float:left; padding:4px 0 0;">
            <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-no'" onclick="var tab = $('#main-tab').tabs('getSelected');var index = $('#main-tab').tabs('getTabIndex',tab);$('#main-tab').tabs('close',index);">关闭</a>
        </div>
    </div>
    <div data-options="region:'center',border:false" style="padding:0;-moz-user-select:text; -webkit-user-select:text; -ms-user-select:text; -khtml-user-select:text; user-select:text;">
    	<div style="padding:6px; border-bottom:1px solid #95B8E7;">  
        	<div style="margin:5px;font-size:15px;font-weight: 700;"><?php echo $contentview[0]->title;?></div>
            <div style="margin:5px;font-size: 12px; font-family:微软雅黑;">
                发布部门：<a href="#"><?php echo $contentview[0]->dept_name;?></a>&nbsp;&nbsp;&nbsp;&nbsp;
                发布人：<a href="#"><?php echo $contentview[0]->from_name;?></a>&nbsp;&nbsp;&nbsp;&nbsp;
                发送时间：<?php echo $contentview[0]->sendertime;?>
            </div>
        </div>
        <div style="padding:12px;"><iframe id="notify_iframe_in_content_<?php echo $contentview[0]->notify_id;?>" frameborder="0" style="width:100%; height:50px;" scrolling="no" onload=' this.style.height=Math.max(this.contentWindow.document.body.scrollHeight,this.contentWindow.document.documentElement.scrollHeight,50)+"px";'></iframe></div>
        <div style="padding:12px;">
        	<?php echo $attlist;?>	      	
    	</div>
    </div>
</div>
<script>
//重新渲染附件列表和右键事件
bing_eattl_fun('<?php echo 'notify'.$contentview[0]->notify_id;?>');

//这里使用框架，是为了内容中的样式不至于影响页面元素。SRC属性不再iframe元素中指定，而在声明之后单独赋值是因为：iframe中的src带参数会导致两次执行
document.getElementById("notify_iframe_in_content_<?php echo $contentview[0]->notify_id;?>").src = "<?php echo base_url().'notify/get_notify_content/'.$contentview[0]->notify_id;?>";
</script>